from selenium.webdriver.common.by import By

from Page.Login_Page import Login_Page


class JieDan_Page(Login_Page):
    #接单员列表
    loc_jiedan=(By.XPATH,'/html/body/div/div/div[2]/div/div[1]/ul/li[4]/ul/li[2]/i')
    #查看数据
    loc_look=(By.XPATH,'//*[@id="app"]/div/div[2]/div/div[2]/div[2]/div/div[3]/div[3]/table/tbody/tr[1]/td[8]/div/button/span')
    #点击每页10条
    loc_ye=(By.XPATH,'//*[@id="app"]/div/div[2]/div/div[2]/div[2]/div/div[2]/div/div[2]/div/input')
    #每页30条
    loc_tiao=(By.XPATH,'/html/body/div[2]/div[1]/div[1]/ul/li[3]/span')


    def jiedan(self):
        """
        点击接单员列表
        :return:
        """
        self.click(self.loc_jiedan)

    def look(self):
        """
        点击查看数据
        :return:
        """
        self.click(self.loc_look)

    def ye(self):
        """
        点击每页10条
        :return:
        """
        self.click(self.loc_ye)
    def tiao(self):
        """
        每页30条
        :return:
        """
        self.click(self.loc_tiao)